package com.coding.pojo;

import java.io.Serializable;

/**
 * location
 * @author 
 */
public class Location implements Serializable {
    private Integer locationId;

    private String locationName;

    private String locationKind;

    private Integer locationPlaceId;

    private Double locationLatitude;

    private Double locationLongitude;

    private static final long serialVersionUID = 1L;

    public Integer getLocationId() {
        return locationId;
    }

    public void setLocationId(Integer locationId) {
        this.locationId = locationId;
    }

    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    public String getLocationKind() {
        return locationKind;
    }

    public void setLocationKind(String locationKind) {
        this.locationKind = locationKind;
    }

    public Integer getLocationPlaceId() {
        return locationPlaceId;
    }

    public void setLocationPlaceId(Integer locationPlaceId) {
        this.locationPlaceId = locationPlaceId;
    }

    public Double getLocationLatitude() {
        return locationLatitude;
    }

    public void setLocationLatitude(Double locationLatitude) {
        this.locationLatitude = locationLatitude;
    }

    public Double getLocationLongitude() {
        return locationLongitude;
    }

    public void setLocationLongitude(Double locationLongitude) {
        this.locationLongitude = locationLongitude;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Location other = (Location) that;
        return (this.getLocationId() == null ? other.getLocationId() == null : this.getLocationId().equals(other.getLocationId()))
            && (this.getLocationName() == null ? other.getLocationName() == null : this.getLocationName().equals(other.getLocationName()))
            && (this.getLocationKind() == null ? other.getLocationKind() == null : this.getLocationKind().equals(other.getLocationKind()))
            && (this.getLocationPlaceId() == null ? other.getLocationPlaceId() == null : this.getLocationPlaceId().equals(other.getLocationPlaceId()))
            && (this.getLocationLatitude() == null ? other.getLocationLatitude() == null : this.getLocationLatitude().equals(other.getLocationLatitude()))
            && (this.getLocationLongitude() == null ? other.getLocationLongitude() == null : this.getLocationLongitude().equals(other.getLocationLongitude()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLocationId() == null) ? 0 : getLocationId().hashCode());
        result = prime * result + ((getLocationName() == null) ? 0 : getLocationName().hashCode());
        result = prime * result + ((getLocationKind() == null) ? 0 : getLocationKind().hashCode());
        result = prime * result + ((getLocationPlaceId() == null) ? 0 : getLocationPlaceId().hashCode());
        result = prime * result + ((getLocationLatitude() == null) ? 0 : getLocationLatitude().hashCode());
        result = prime * result + ((getLocationLongitude() == null) ? 0 : getLocationLongitude().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", locationId=").append(locationId);
        sb.append(", locationName=").append(locationName);
        sb.append(", locationKind=").append(locationKind);
        sb.append(", locationPlaceId=").append(locationPlaceId);
        sb.append(", locationLatitude=").append(locationLatitude);
        sb.append(", locationLongitude=").append(locationLongitude);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}